home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000540_blitz-list-request_Thu Aug 18 09:30:59 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  2KB

  1. Received: from iconz.co.nz (iconz.co.nz [202.14.100.2]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id JAA02189 for <blitz-list@helsinki.fi>; Thu, 18 Aug 1994 09:28:14 +0300
  2. Received: (acid@localhost) by iconz.co.nz (8.6.6.Beta6/8.6.6.Beta6) id SAA07861; Thu, 18 Aug 1994 18:21:11 +1200
  3. Date: Thu, 18 Aug 1994 18:21:10 +1200 (NZST)
  4. From: Acid Software <acid@iconz.co.nz>
  5. Subject: Re: Bitplane moving
  6. To: Dave Cole <s933384@yallara.cs.rmit.oz.au>
  7. cc: Blitz <blitz-list@helsinki.fi>
  8. In-Reply-To: <199408160522.PAA19903@yallara.cs.rmit.oz.au>
  9. Message-ID: <Pine.3.89.9408181840.B7528-0100000@iconz.co.nz>
  10. MIME-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=US-ASCII
  12. X-Status: 
  13. Status: RO
  14.  
  15. Move individual bitplanes?
  16.  
  17. If you are going to ask such bizarre questions a little outline of what 
  18. you are trying to acheive may help us offer advise.
  19.  
  20. Two ways spring to mind..
  21.  
  22. Use bitplanesbitmap to isolate the single bitmap and call scroll, if it 
  23. is only 1 bitplane scroll will be nice and fast. If I had a sixbitplane 
  24. bitmap as bitmap 0 I would go...
  25.  
  26. bitplanesbitmap 0,1,2^n ;n is the bitplane I want to scroll
  27.  
  28. then anytime I wanted to scroll it:
  29.  
  30. use bitmap 1:scroll ....
  31.  
  32. The other way would be to hit the bitplane object in memory, make sure it 
  33. is not the first bitplane you want to use and do the following:
  34.  
  35. ad.l=addr bitmap(0)+8+n*4 ;where n is the bitplane (not 0!)
  36. cpos.l=peek.l(ad)         ;current position of plane in memory
  37.  
  38. poke.l ad,cpos+int(x/16)*2+y*bitplanewidth
  39.  
  40. Next time you do a show the bitplane we just hit will be offset by x,y, 
  41. note however you can only scroll in x in multiples of 16, so this method 
  42. sucks.
  43.  
  44. Last method would be using the 64 wide sprites as an extra playfield and 
  45. writing som machine code routines to display data in them. I'm not going 
  46. to write them.
  47.  
  48. Love and flowers,
  49.  
  50. Simon